<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add New Student</title>
</head>
<body>
	<div style="color: red"><%=request.getAttribute("errorMessage") == null ? "" : request.getAttribute("errorMessage")%></div>
	<%
		String name = request.getParameter("name");
		String age = request.getParameter("age");
		String gender = request.getParameter("gender");
		String birthday = request.getParameter("birthday");
	%>
	<form action="save.do" method="post">
		<table>
			<tr>
				<td>Student Name</td>
				<td><input type="text" name="name"
					value="<%=name == null ? "" : name%>" /></td>
			</tr>
			<tr>
				<td>Student Age</td>
				<td><input type="text" name="age"
					value="<%=age == null ? "" : age%>" /></td>
			</tr>
			<tr>
				<td>Student Gender</td>
				<td><input type="text" name="gender"
					value="<%=gender == null ? "" : gender%>" /></td>
			</tr>
			<tr>
				<td>Student birthday</td>
				<td><input type="text" name="birthday"
					value="<%=birthday == null ? "" : birthday%>" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="Add" /></td>
			</tr>
		</table>
	</form>
</body>
</html>